Skip to content

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Feb 1, 2017

fixes #1329

In #1020 (more precisely in fbb299b) a custom finance trace editable: true legend item handler was added to ensure that editing legend text would propagate to the correct finance trace. Unfortunately, the relevant attribute name changed since then, breaking the behavior. Testing this particular editable: true isn't trivial hence why I left it out of #1020.

In this PR, I make sure to 🔒 this behavior down.

@etpinard etpinard added status: reviewable bug something broken labels Feb 1, 2017
@etpinard etpinard added this to the 1.23.0 milestone Feb 1, 2017
editNode.dispatchEvent(new window.FocusEvent('focus'));

editNode.textContent = newText;
editNode.dispatchEvent(new window.FocusEvent('focus'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is used to invoke the makeEditable handlers.

@alexcjohnson
Copy link
Collaborator

Gotta love the 1-line fix with 76 lines of tests! 💃

  in finance legend item edit test case.
@etpinard etpinard merged commit 4695758 into master Feb 2, 2017
@etpinard etpinard deleted the finance-legend-fix branch February 2, 2017 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

financial charts: can't edit trace names from legend while {editable: true}
2 participants